package com.dating.libs.web.services.datingservice;


import java.util.Hashtable;
import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapObject;

public final class UserInterest extends SoapObject {
    private int userId;

    private java.lang.String name;

    private int age;

    private java.lang.String address;

    private java.lang.String lastActive;

    public UserInterest() {
        super("", "");
    }
    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getUserId(int userId) {
        return this.userId;
    }

    public void setName(java.lang.String name) {
        this.name = name;
    }

    public java.lang.String getName(java.lang.String name) {
        return this.name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge(int age) {
        return this.age;
    }

    public void setAddress(java.lang.String address) {
        this.address = address;
    }

    public java.lang.String getAddress(java.lang.String address) {
        return this.address;
    }

    public void setLastActive(java.lang.String lastActive) {
        this.lastActive = lastActive;
    }

    public java.lang.String getLastActive(java.lang.String lastActive) {
        return this.lastActive;
    }

    public int getPropertyCount() {
        return 5;
    }

    public Object getProperty(int __index) {
        switch(__index)  {
        case 0: return new Integer(userId);
        case 1: return name;
        case 2: return new Integer(age);
        case 3: return address;
        case 4: return lastActive;
        }
        return null;
    }

    public void setProperty(int __index, Object __obj) {
        switch(__index)  {
        case 0: userId = Integer.parseInt(__obj.toString()); break;
        case 1: name = (java.lang.String) __obj; break;
        case 2: age = Integer.parseInt(__obj.toString()); break;
        case 3: address = (java.lang.String) __obj; break;
        case 4: lastActive = (java.lang.String) __obj; break;
        }
    }

    @SuppressWarnings("unchecked")
	public void getPropertyInfo(int __index, Hashtable __table, PropertyInfo __info) {
        switch(__index)  {
        case 0:
            __info.name = "userId";
            __info.type = Integer.class; break;
        case 1:
            __info.name = "name";
            __info.type = java.lang.String.class; break;
        case 2:
            __info.name = "age";
            __info.type = Integer.class; break;
        case 3:
            __info.name = "address";
            __info.type = java.lang.String.class; break;
        case 4:
            __info.name = "lastActive";
            __info.type = java.lang.String.class; break;
        }
    }

}
